<div class="page field-section" data-page="deliveryDetail" id="deliveryDetail" style="width: 100%;">
	<p class="location">
		<label>当前位置：</label>
		<a href="javascript:void(0)" class="deliveryNoticeList">放货通知</a>&nbsp;&gt;&nbsp;
		<a href="javascript:void(0)" class="deliveryList">放货配送</a>&nbsp;&gt;&nbsp;放货配送详情
	</p>
	<div class="page-content" id="submitContainerTallying">
		<div class="page-content-main">
			<div class="page-content-main-header d2">
				<div class="page-content-main-header-item fr">
					<div class="page-content-button none" id="acceptTasks">接受任务</div>
					<div class="page-content-button none" id="signDelivery">生成放货配送</div>
				</div>
			</div>
			<div class="page-content-main-content deliveryDetail_main_content">
			</div>
		</div>

		<script type="text/template" id="deliveryDetailTpl">
			{@each datas as it}
			<div class="page-content-main-content-item " id="">
				<span>配送单号：${it.deliveryNumber}</span>
				<span>融资信息编号：${it.financeNumber}</span>
				<br />
				<br />
				<span>物流公司：${it.logisticsCompanyName}</span>
				<span>配送人：${it.clerkName}</span>
			</div>
			<div class="page-content-main-content-item">
				<table class="table">
					<thead>
						<tr>
							<td>货物箱号</td>
							<td>箱型尺寸</td>
							<td>运单号</td>
							<td>铅封号</td>
							<td>货物名称</td>
							<td>货物数量</td>
							<td>货物重量(kg)</td>
							<td>货物体积(m<sup>3</sup>)</td>
							<td>是否签收</td>
							<td>操作</td>
						</tr>
					</thead>
					<tbody id="deliveryListBody">
						{@each it.containerInventorys as that}
						<tr class="tr_style table-data" inventoryId=${that.inventoryId}>
							<td>${that.caseNumber}</td>
							<td>${that.caseSize}</td>
							<td>${that.waybillNumber}</td>
							<td>${that.facingSlip}</td>
							<td>
								{@each that.containerBulkstocks as them} ${them.bulkstockName} {@/each}
							</td>

							<td>
								{@each that.containerBulkstocks as them} ${them.quantity}(${them.unit}) {@/each}
							</td>
							<td>
								{@each that.containerBulkstocks as them} ${them.weight} {@/each}
							</td>
							<td>
								{@each that.containerBulkstocks as them} ${them.volume} {@/each}
							</td>
							<td>
								{@if that.signState ===0} 未签收 {@else if that.signState ===1} {@if that.abnormalType ===2} 签收异常 {@else} 正常签收 {@/if} {@/if}
							</td>
							<td>
								{@if that.signState ===0}
								<a class="signDelivery">签收</a> <a class="abnormalSignDelivery">异常签收</a></td>
							{@else if that.signState ===1}
							<a class="signDelivery_detail" id="${that.abnormalType}">详情</a> {@/if}
							<!--<a class="abnormalSignDelivery">异常签收</a>-->
						</tr>
						{@/each}
					</tbody>
				</table>

			</div>
			{@/each}
		</script>
		<a class="back" href="javascript:history.go(-1);">返回</a>
	</div>
	<!--弹出框定义-->
	<div class="dialog none" id="confirmDialog" style="width:300px;">
		<div class="dialogTitle"></div>
		<button class="closeDiv">×</button>
		<div class="dialogContent">
		</div>
		<div class="footerBtn">
			<div class="dialogBtn dialogCancelBtn radius_shadow">取消</div>
			<div class="dialogBtn dialogHandlerBtn radius_shadow">确定</div>
		</div>
	</div>
	<!--签收放货配送-->
	<div id="signDelivery_dialog" class="dialog signDelivery_dialog none" style="margin-top: -87.5px; margin-left: -200px;">
		<div class="dialogTitle">签收</div>
		<button class="closeDiv">×</button>
		<div class="dialogContent signDeliveryContent" action="signContainerInventory" version="v1.0">
			<div>
				<input type="hidden" name="inventoryId" />
				<div class="deliveryDiv">
					<span class="deliverySpan"><span class="requiredInput">*</span>签收地点：
					<input type="text" name="signAddress" codeName="签收地点" isNUll="1">
					</span>
				</div>
				<div class="signPreDiv">
					<span class="requiredInput">*</span><b class="deliverySpan">签收前图片：</b>
					<div class="showImg"></div>
					<input type="hidden" name="signPreFile" codeName="签收前图片" isNUll="1" class="signPreFile" />
					<p id="uploadFilepreTallyP" class="uploadFilepreTallyP">
						<label for="uploadSignPreFile" class="file"> 点击上传图片
							<input type="file" class="uploadFileInput1" name="file" id="uploadSignPreFile" accept=".png,.jpg,.bmp" />
						</label>
					</p>
				</div>
				<div class="signSuffixDiv">

					<span class="requiredInput">*</span><b class="deliverySpan">签收后图片：</b>
					<div class="showImg"></div>
					<input type="hidden" name="signSuffixFile" codeName="签收后图片" isNUll="1" class="signSuffixFile" />
					<p id="uploadFilepreTallyP1" class="uploadFilepreTallyP">
						<label for="uploadSignSuffixFile" class="file"> 点击上传图片
							<input type="file" class="uploadFileInput1" name="file" id="uploadSignSuffixFile" accept=".png,.jpg,.bmp" />
						</label>
					</p>
				</div>
				<p>
					<span><span class="requiredInput">*</span>签收说明：
					<textarea class="deliveryTextarea" name="signRemark" codeName="签收说明" isNUll="1"></textarea>
					</span>
				</p>
			</div>
		</div>
		<div class="footerBtnContract">
			<div id="sure_signDelivery" class="dialogBtn dialogHandlerBtn ">提交</div>
		</div>
	</div>

	<!--异常签收放货配送-->
	<div id="abnormalSignDelivery_dialog" class="dialog signDelivery_dialog none" style="margin-top: -87.5px; margin-left: -200px;">
		<div class="dialogTitle">异常签收</div>
		<button class="closeDiv">×</button>
		<div class="dialogContent abnormalSignDeliveryContent" action="signAbnormalContainerInventory" version="v1.0">
			<div>
				<input type="hidden" name="inventoryId" />
				<div class="deliveryDiv">
					<span class="deliverySpan"><span class="requiredInput">*</span>签收地点：
					<input type="text" name="signAddress" codeName="签收地点" isNUll="1">
					</span>
					<span class="deliverySpan"><span class="requiredInput">*</span>异常类别：
					<select name="abnormalState">
						<option value="0">未知</option>
						<option value="1">货损</option>
						<option value="2">丢失</option>
					</select>

					</span>
				</div>
				<div class="signPreDiv">
					<span class="requiredInput">*</span><b class="deliverySpan">异常图片：</b>
					<div class="showImg"></div>
					<input type="hidden" name="signAbnormalFile" codeName="异常图片" isNUll="1" class="signAbnormalFile" />
					<p id="uploadFilepreTallyP3" class="uploadFilepreTallyP">
						<label for="uploadSignAbnormalFile" class="file"> 点击上传图片
							<input type="file" class="uploadFileInput1" name="file" id="uploadSignAbnormalFile" accept=".png,.jpg,.bmp" />
						</label>
					</p>
				</div>
				<div class="signSuffixDiv">

					<span class="requiredInput">*</span><b class="deliverySpan">异常录音文件：</b>
					<div class="showImg"></div>
					<input type="hidden" name="signSoundRecorde" codeName="异常录音文件" isNUll="1" class="signSoundRecorde" />
					<p id="uploadFilepreTallyP4" class="uploadFilepreTallyP">
						<label for="uploadSignSoundRecorde" class="file"> 点击上传图片
							<input type="file" class="uploadFileInput1" name="file" id="uploadSignSoundRecorde" accept=".png,.jpg,.bmp" />
						</label>
					</p>
				</div>
				<br>
				<div class="signPreDiv">
					<span class="requiredInput">*</span><b class="deliverySpan">签收前图片：</b>
					<div class="showImg"></div>
					<input type="hidden" name="signPreFile" codeName="签收前图片" isNUll="1" class="signPreFile" />
					<p id="uploadFilepreTallyP5" class="uploadFilepreTallyP">
						<label for="uploadSignPreFile1" class="file"> 点击上传图片
							<input type="file" class="uploadFileInput1" name="file" id="uploadSignPreFile1" accept=".png,.jpg,.bmp" />
						</label>
					</p>
				</div>
				<div class="signSuffixDiv">

					<span class="requiredInput">*</span><b class="deliverySpan">签收后图片：</b>
					<div class="showImg"></div>
					<input type="hidden" name="signSuffixFile" codeName="签收后图片" isNUll="1" class="signSuffixFile" />
					<p id="uploadFilepreTallyP6" class="uploadFilepreTallyP">
						<label for="uploadSignSuffixFile1" class="file"> 点击上传图片
							<input type="file" class="uploadFileInput1" name="file" id="uploadSignSuffixFile1" accept=".png,.jpg,.bmp" />
						</label>
					</p>
				</div>
				<p>
					<span><span class="requiredInput">*</span>签收说明：
					<textarea class="deliveryTextarea" name="signRemark" codeName="签收说明" isNUll="1"></textarea>
					</span>
				</p>
			</div>
		</div>
		<div class="footerBtnContract">
			<div id="sure_abnormalSignDelivery" class="dialogBtn dialogHandlerBtn ">提交</div>
		</div>
	</div>
</div>